package com.ruike.alisurface.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2018-09-07.
 */
public class OrderrBean implements Serializable {

    /**
     * data : {"url":"https://rk.shouhuojiyun.com/Rknew/App/order/Pay?OrderId=2024031912593700049581&TradeType=JdPay","id":"2024031912593700049581","total_fee":0.01,"details":[{"slotIndex":0,"quantity":1,"slotTypeId":21003,"price":0.01}]}
     * code : 0
     * msg : Success
     * sendData : 2024-03-19 12:59:37
     */

    DataBean data;
    int code;
    String msg;
    String sendData;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getSendData() {
        return sendData;
    }

    public void setSendData(String sendData) {
        this.sendData = sendData;
    }

    public static class DataBean implements Serializable {
        /**
         * url : https://rk.shouhuojiyun.com/Rknew/App/order/Pay?OrderId=2024031912593700049581&TradeType=JdPay
         * id : 2024031912593700049581
         * total_fee : 0.01
         * details : [{"slotIndex":0,"quantity":1,"slotTypeId":21003,"price":0.01}]
         */

        String url;
        String id;
        double total_fee;
        List<DetailsBean> details;

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public double getTotal_fee() {
            return total_fee;
        }

        public void setTotal_fee(double total_fee) {
            this.total_fee = total_fee;
        }

        public List<DetailsBean> getDetails() {
            return details;
        }

        public void setDetails(List<DetailsBean> details) {
            this.details = details;
        }

        public static class DetailsBean implements Serializable {
            /**
             * slotIndex : 0
             * quantity : 1
             * slotTypeId : 21003
             * price : 0.01
             */

            int slotIndex;
            int quantity;
            int slotTypeId;
            double price;

            public int getSlotIndex() {
                return slotIndex;
            }

            public void setSlotIndex(int slotIndex) {
                this.slotIndex = slotIndex;
            }

            public int getQuantity() {
                return quantity;
            }

            public void setQuantity(int quantity) {
                this.quantity = quantity;
            }

            public int getSlotTypeId() {
                return slotTypeId;
            }

            public void setSlotTypeId(int slotTypeId) {
                this.slotTypeId = slotTypeId;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            @Override
            public String toString() {
                return "DetailsBean{" +
                        "slotIndex=" + slotIndex +
                        ", quantity=" + quantity +
                        ", slotTypeId=" + slotTypeId +
                        ", price=" + price +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "url='" + url + '\'' +
                    ", id='" + id + '\'' +
                    ", total_fee=" + total_fee +
                    ", details=" + details +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "OrderrBean{" +
                "data=" + data +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", sendData='" + sendData + '\'' +
                '}';
    }
}
